<template>
  <div class="Fav-container">
    <Navbar title="我的收藏" />

    <div ref="refList" class="content-list">
      <QuotaList />
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useQuotaStore } from '@/store'
import Navbar from '@/components/Navbar/index.vue'

import QuotaList from './components/QuotaList.vue'
import QuotaServe from '@/api/quota'

defineOptions({
  name: 'Fav'
})

const quotaStore = useQuotaStore()
quotaStore.fetchFavQuotaList().then(() => {
  quotaStore.fetchPricePrediction({isCollect: '1'})
})
</script>

<style lang="less" scoped>
.Fav-container {
  height: 100vh;
  box-sizing: border-box;
  overflow: auto;
  display: flex;
  flex-direction: column;
  .content-list {
    flex-grow: 1;
    margin-top: -1px;
    overflow-y: scroll;
    padding-bottom: 20px;
  }
}
</style>
